import { Component, OnInit, Input, Inject, Output, EventEmitter } from '@angular/core';


@Component({
  selector: 'app-title-editor',
  templateUrl: './title-editor.component.html',
  styleUrls: ['../../editor.less']
})
export class TitleEditorComponent implements OnInit {


  @Input() selectEl = {
    type: 'title',
    text: '',
    color: '',
    textAlign: '',
    backgroundColor: ''
  }
 @Output() onSave = new EventEmitter(null)
 @Output() onRemove = new EventEmitter(null)
  ngOnInit(): void {

  }
  save() {
    this.onSave.emit()
  }
  remove(){
    this.onRemove.emit()
  }
}
